package com.scau.classOnline.dao;

import com.scau.classOnline.entity.Schedule;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface ScheduleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Schedule record);

    Schedule selectByPrimaryKey(Integer id);

    List<Schedule> selectAll();

    int updateByPrimaryKey(Schedule record);

    List<Schedule> selectByStuIdAndInterval(@Param("uid") Integer uid, @Param("day") Date day, @Param("interval") Integer interval);

    List<Schedule> selectByTeaIdAndInterval(@Param("uid") int uid, @Param("day") Date day, @Param("interval") int i);

    int updateFileIdByPrimaryKey(@Param("id") Integer id, @Param("fileId") Integer fileId);

    List<Schedule> selectByCid(Integer cid);

    int updateAllByTime();
}